package com.atguigu.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

@EnableWebMvc //相当于给 handelerAdapter 配置了json转换器 <mvc:annotation-driven/>
@Configuration
@ComponentScan(basePackages = "com.atguigu")
public class MvcConfig {

//    @Bean
//    public RequestMappingHandlerMapping handerMapper()
//    {
//        return new RequestMappingHandlerMapping();
//    }
//    @Bean
//    public RequestMappingHandlerAdapter handlerAdapter()
//    {
//        return new RequestMappingHandlerAdapter();
//    }
}
